package com.xing.okhttp;


public class ResponseResult {

	/**
	 * 响应代码
	 */
	private final int responseCode;

	/**
	 * 响应内容
	 */
	private final String responseBody;

	protected ResponseResult(int responseCode, String responseBody) {
		this.responseCode = responseCode;
		this.responseBody = responseBody;
	}

	protected int getResponseCode() {
		return this.responseCode;
	}

	protected String getResponseBody() {
		return this.responseBody;
	}

	public static ResponseResult create(int responseCode, String responseBody) {
		return new ResponseResult(responseCode, responseBody);
	}
}